﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="B_Country.aspx.cs" Inherits="RGPWEB.EN.BaseData.B_Country" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <link rel="Stylesheet" type="text/css" href="~/inc/Style/index.css" />
    <link href="~/inc/Style/GridView.css" rel="Stylesheet" type="text/css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <fieldset>
                <legend>New/Edit</legend>
                <table style="width:100%;">
                    <tr>
                        <td style="width:160px" align="right"> Name（Chinese）：</td>
                        <td style="width:190px; color: #FF0000;" align="left">
                            <asp:TextBox ID="txt_Cname" runat="server"></asp:TextBox>
                            *</td>
                        <td style="width:160px" align="right">
                            Name（English）：</td>
                        <td style="width:160px" align="left">
                            <asp:TextBox ID="txt_Ename" runat="server"></asp:TextBox>
                        </td >
                        <td align="left">
                            <asp:Button ID="btn_sure" runat="server" Text="OK" onclick="btn_sure_Click" />
                            <asp:Button ID="btn_cance" runat="server" onclick="btn_cance_Click" 
                                Text="cancel" />
                            <asp:HiddenField ID="hid_id" runat="server" />
                        </td>
                    </tr>                    
                </table>
            </fieldset>
            <fieldset>
                <legend>Country List</legend>
                <asp:GridView ID="grv_list" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" DataKeyNames="C_ID" 
                    onrowcommand="grv_list_RowCommand" onrowdatabound="grv_list_RowDataBound" 
                    CssClass="Grid">
                    <FooterStyle CssClass="GridFooter" />
                    <RowStyle CssClass="Row" />
                    <HeaderStyle CssClass="HeadingCell" />
                    <Columns>
                        <asp:BoundField HeaderText="Name（Chinese）" DataField="C_CName"/>
                        <asp:BoundField HeaderText ="Name（English）" DataField="C_EName"/>
                        <asp:TemplateField>
                            <ItemTemplate>                                
                                <asp:Button ID="btn_edit" runat="server"  Text="Edit" CommandArgument='<%# Eval("C_ID")%>' CommandName="GetID"/>    
                            </ItemTemplate>                
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>      
                                <asp:Button ID="btn_del" runat="server"  Text="Del" CommandArgument='<%# Eval("C_ID")%>' CommandName="delID"/>            
                            </ItemTemplate>                
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </fieldset>
    </div>
    </form>
</body>
</html>
